package com.ruoyi.goods.service.impl;

import com.ruoyi.goods.domain.Goods;
import com.ruoyi.goods.mapper.GoodsMapper;
import com.ruoyi.goods.service.GoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GoodsServiceImpl implements GoodsService {

    @Autowired
    private GoodsMapper goodsMapper;

    @Override
    public List<Goods> queryByPage(Goods goods) {
        return goodsMapper.queryByPage(goods);
    }

    @Override
    public List<Goods> getList() {
        return goodsMapper.getList();
    }

    @Override
    public int insert(Goods goods) {
        return goodsMapper.insert(goods);
    }

    @Override
    public int update(Goods goods) {
        return goodsMapper.update(goods);
    }

    @Override
    public int delByIds(Long[] ids) {
        return goodsMapper.delByIds(ids);
    }
}
